import request from '@/utils/request'

// 查询ChildHealth列表
export function listChildHealth(childId,query) {
return request({
url: '/api/v1/childhealthList/'+childId,
method: 'get',
params: query
})
}

// 查询ChildHealth详细
export function getChildHealth (healthId) {
return request({
url: '/api/v1/childhealth/' + healthId,
method: 'get'
})
}


// 新增ChildHealth
export function addChildHealth(data) {
return request({
url: '/api/v1/childhealth',
method: 'post',
data: data
})
}

// 修改ChildHealth
export function updateChildHealth(data) {
return request({
url: '/api/v1/childhealth',
method: 'put',
data: data
})
}

// 删除ChildHealth
export function delChildHealth(healthId) {
return request({
url: '/api/v1/childhealth/' + healthId,
method: 'delete'
})
}